<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // Array.from()方法就是将一个类数组对象或者可遍历对象转换成一个真正的数组（浅拷贝）
      let str = 'a-b-c';
      let arr = Array.from(str);
      console.log(arr); //["a", "-", "b", "-", "c"]
    </script>
  </body>
</html>
